package edu.sctu.practice.class01.lili.assgin02;

/**
 * Created by Cullen on 2015/10/9.
 */
public class Rational{


    public int add (int a,int b){
            int c;

            c = a + b;
            return c;
    }


    public int sub(int a, int b) {

        int c;

        c = a - b;
        return c;
    }


    public int mult(int a, int b) {
        int c;

        c = a * b;
        return c;
    }



    public double div(int a, int b) {

        double c;

        double aDouble = (double) a;
        double bDouble = (double) b;

        c = (double) (aDouble / bDouble);
        return c;
    }
}

